﻿#if NETFX_CORE || WINDOWS_PHONE

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Networking;
using Windows.Networking.Sockets;

namespace XmlSockets.Internal.AbSystem
{
    /// <summary>
    /// エンドポイントを抽象化するクラスです
    /// </summary>
    internal sealed class AbEndPoint:IEndPoint
    {

        internal AbEndPoint(HostName hostName, string port)
        {
            this.Address = hostName.ToString();
            this.Port = port;
        }
        
        /// <summary>
        /// アドレス
        /// </summary>
        public string Address
        {
            get;
            private set;
        }

        /// <summary>
        /// ポート番号
        /// </summary>
        public string Port
        {
            get;
            private set;
        }

    }
}
#endif